﻿<!--#include file="lib/base.asp"-->
<!--#include file="theme.asp"-->
<%

dim id:id=sdcms.getint(sdcms.fget("id",0),0)
dim sql_where:sql_where="my_Brand<>'' "
dim key:key=sdcms.enhtml(sdcms.fget("key",0))
dim keylen:keylen=sdcms.strlen(key)

if keylen>0  then
sql_where="(my_Brand<>'' and my_Brand like '%"&key&"%') or (my_Brand<>'' and my_Branden like '%"&key&"%')"
end if



if id<>0 then
dim theme_brand_list:theme_brand_list="sdcms_brandlist.asp"
dim rsshow
set rsshow=sdcms.db.exedb("select top 1 my_Brand,my_Brandlogo,my_Brandintro,my_Brandurl,my_Branden from sd_user where id="&id&" and islock=1")
if rsshow.eof then
dim errormsg:errormsg="数据不存在"
sdcms.show theme_404,""
rsshow.close
set rsshow=nothing
sdcms.db.dbclose
sdcms.die
end if
sdcms.show theme_brand_list,""
else
dim theme_brand:theme_brand="sdcms_brand.asp"
sdcms.show theme_brand,""
end if	
sdcms.db.dbclose
%>